# Rakefile for managing chess-data project
#
# Copyright (c) Peter Lane, 2013-20.

require 'rake/testtask'

Rake::TestTask.new do |t|
  t.libs.push "lib"
  t.test_files = FileList['test/*_test.rb']
  t.verbose = true
end

directory 'release'

desc 'build gem: keeps generated gems in release/'
task :build_gem => 'release' do
  sh "gem build chess-data.gemspec"
  sh "mv *.gem release"
end

desc 'build documentation'
task :doc do
  sh "rdoc lib LICENSE.txt README.rdoc -m README.rdoc"
end
